package 多线程;

import static java.lang.Thread.sleep;

public class Demo5 {
    public static void main(String[] args) {
        Thread t = new Thread(() -> {
            System.out.println("star"+System.currentTimeMillis());
            try {
                sleep(1000);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
            System.out.println("end"+System.currentTimeMillis());
        });
        t.start();
    }
}
